{extend name="./public/base"/}
{block name="alt"}知识体系{/block}
{block name="alter"}知识体系详情{/block}
{block name="title"}BangBang知识体系详情{/block}
{block name="main"}
	<div class="row">
                    <div class="col-11">
                        <div class="card">
                            <div class="card-block">
                                <div class="card-body">
                                	<h3>基本信息</h3>
                                	{volist name="knows" id="kn"}
                                	<div class="row">
                                	<div class="col-sm-3 text-center">
                                		<br>
                                		<br>
                                		<img src="__STATIC__/knowledgepic/{$kn.kpic}" alt="" width="150px" height="150px" style="border-radius: 50%;"><br>
                                    <button type="button" class="btn btn-success" style="margin-top: 100px;"><a href="{:url('Knowledge/index')}" style="color:white;">返回知识体系</a></button>
                                	</div>
                                        <div class="">
                                           <table class="table">
  <caption></caption>
  <tr>
      <td><p>知识体系ID</p></td>
      <td><p class="text-left">{$kn.kid}</p></td>
    </tr>
    <tr>
      <td><p>知识体系名</p></td>
      <td><p class="text-left">{$kn.kname}</p></td>
    </tr>
    <tr>
      <td><p>知识体系简介</p></td>
      <td><p class="text-left">{$kn.kinfo}</p></td>
    </tr>
    
</table>

</div>
</div>
                                          
                                       
                                        {/volist}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


<div class="row">
                    <div class="col-11">
                        <div class="card">
                            <div class="card-block">
                                <div class="card-body">
                                	<h3>子知识体系(请尽量避免子知识体系的封禁)</h3>

<!-- 按钮触发模态框 -->
<button class="btn btn-success btn-min" data-toggle="modal" data-target="#myModal" style="float: right;margin-top: -50px;"><i class="icon-plus"></i></button>


<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myModalLabel">添加新的子视频</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form" action="{:url('addbok')}" method="post" enctype="multipart/form-data">
                	{volist name="knows" id="us"}
                	<input type="hidden" name="kid" value="{$us.kid}" >
                	{/volist}
<div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">子知识体系名</label>
    <div class="col-sm-10">
      <input type="text" name="kbname" class="form-control" id="inputPassword" required>
    </div>
  </div>
  
  <div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">子知识体系简介</label>
    <div class="col-sm-10">
      <textarea class="form-control" name="kbintro" rows="3" required></textarea>
    
    </div>
  </div>
  <!-- <div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">视频简介</label>
    <div class="col-sm-10">
      <input type="text" name="sshcredit" class="form-control" id="inputPassword" required>
       <textarea class="form-control" name="intro" rows="3" required></textarea>
    </div>
  </div> -->
 
  <button type="submit" class="btn btn-primary">提交</button>
</form>
            </div>
           
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->
                                	
                                	<table class="table table-striped  mt-3">
                                		<thead>
                                                <tr>
                                                    <th scope="col"><p class="text-center">状态</p></th>
                                                    <th scope="col"><p class="text-center">子知识体系ID</p></th>
                                                    <th scope="col"><p class="text-center">子知识体系名</p></th>
                                                    
                                                    <th scope="col"><p class="text-center">子知识体系简介</p></th>
                                                    <th scope="col"><p class="text-center">操作</p></th>
                                                </tr>
                                            </thead>
                                             <tbody>
                                            {volist name="boks" id="cv"}
                                                <tr>
                                                    <td>
                                                        {if condition="$cv.kbstate==0"}<p class="text-center text-success">正常</p>
                                                        {else/}<p class="text-center text-danger">封禁</p>
                                                        {/if}
                                                    </td>
                                                    <td><p class="text-center">{$cv.kbid}</p></td>
                                                
                                                    <td><p class="text-center">{$cv.kbname}</p></td>
                                                    
                                                  
                                                     
                                                   <td><p class="text-center">{$cv.kbintro}</p></td>
                                           		<td class="text-center"><p class="text-center">

										<div class="btn-group">
                                                         <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
        <span class="glyphicon glyphicon-cog">Settings</span>
    </button>
    <ul class="dropdown-menu" role="menu">
        <li>
            <a href="{:url('detailsupdate',['kid'=>$cv.kid,'kbid'=>$cv.kbid])}"><i class="icon-pencil"></i>修改</a>
        </li>

        <li>
            <a class="text-danger" href="{:url('detailsshield',['kid'=>$cv.kid,'kbid'=>$cv.kbid])}">&nbsp;<i class="icon-ban"></i>解除/封禁</a>
        </li>
        
    </ul>
</div>

                                           		</p></td>

                                            {/volist}
                                      		 </tbody>
                                        </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
{/block}